package org.frog.sgs.card.strength;

import org.frog.sgs.card.strength.base.TiLi3;
import org.frog.sgs.card.strength.base.TiLi4;
import org.frog.sgs.card.strength.base.TiLi5;

/**
 * @author duanxiangqi
 * @date 2012-10-27
 */
public enum StrengthFactory {
	instance;

	public Strength newInstance(int maxStrength) {
		switch (maxStrength) {
		case 3:
			return new TiLi3();
		case 4:
			return new TiLi4();
		case 5:
			return new TiLi5();
		default:
			return null;
		}
	}
}
